<?php
namespace app\model\mongo;

use MongoDB\Laravel\Eloquent\Model;

class BaseMongo extends Model
{
    //模型的连接名称
    protected $connection = 'mongodb';

    protected $primaryKey = 'id';

    public $timestamps = false;
    
    //创建时间
    const CREATED_AT = 'create_time';

    //更新时间
    const UPDATED_AT = 'update_time';
}